//
//  TollStationChargeSummaryModel.m
//  Runone
//
//  Created by ekkaLyn on 2017/4/21.
//  Copyright © 2017年 runone. All rights reserved.
//

#import "TollStationChargeSummaryModel.h"
#import <UIKit/UIKit.h>

@implementation TollStationChargeSummaryModel

+ (NSDictionary *)objectClassInArray{
    return @{
             @"TollStationChargeList" : @"TollStationChargeListModel",
             };
}
-(void)setTotalCharge:(NSString*)TotalCharge
{
   CGFloat TotalChargeFl=[TotalCharge floatValue];
    if (0.0<=TotalChargeFl&&TotalChargeFl<100000.0) {
        _TotalCharge=[NSString stringWithFormat:@"%.2f元",TotalChargeFl];
    }
    else if (100000.0<=TotalChargeFl&&TotalChargeFl<100000000.0)
    {
    
    _TotalCharge=[NSString stringWithFormat:@"%.2f万元",TotalChargeFl/10000.0];
    }
    else if (TotalChargeFl>=100000000.0)
    {
        _TotalCharge=[NSString stringWithFormat:@"%.2f亿元",TotalChargeFl/100000000.0];
    }
    
}

-(void)setTotalTrafficFlow:(NSString*)TotalTrafficFlow
{
    NSInteger TotalChargeFl=[TotalTrafficFlow integerValue];
    if (0<=TotalChargeFl&&TotalChargeFl<100000.0) {
        _TotalTrafficFlow=[NSString stringWithFormat:@"%ld车次",(long)TotalChargeFl];
    }
    else if (100000.0<=TotalChargeFl&&TotalChargeFl<100000000.0)
    {
        
        _TotalTrafficFlow=[NSString stringWithFormat:@"%.2f万车次",TotalChargeFl/10000.0];
    }
    else if (TotalChargeFl>=100000000.0)
    {
        _TotalTrafficFlow=[NSString stringWithFormat:@"%.2f亿车次",TotalChargeFl/100000000.0];
    }

    
}


@end
